* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn't affect final width */
    font-family: sans-serif;
}

body {
    background-color: black;
}

.box1 {
    background-image: url(image8.jpg);
    background-size: cover;
    background-position: center;
    min-height: 100vh; /* Use min-height to cover the full screen */
    padding: 20px;
    border-bottom: 8px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the form horizontally */
    justify-content: center; /* Center the form vertically */
}

.page-header {
    width: 100%;
    max-width: 450px;
    margin-bottom: 20px;
}

.box2 {
    background-color: rgba(0, 0, 0, 0.75);
    width: 100%;
    max-width: 450px; /* Limits width on large screens */
    height: auto; /* Let height adjust to content */
    padding: 60px; /* Add space inside the form */
    border-radius: 4px;
    color: white;
}

.box2 h1 {
    font-size: 32px;
    margin-bottom: 28px;
}

.box2 .formdesign input {
    width: 100%; /* Make input fields take full width of container */
    height: 50px;
    border-radius: 4px;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    background-color: #333;
    color: white;
    margin-bottom: 5px; /* Space for error message */
}

.formerror {
    color: #e87c03;
    font-size: 13px;
    display: block;
    height: 16px; /* Reserve space to prevent layout shift */
    margin-bottom: 10px;
}

.box2 button {
    width: 100%;
    height: 48px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 24px;
    background-color: #e50914;
    color: white;
    border: none;
    cursor: pointer;
}

.form-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #b3b3b3;
    font-size: 13px;
    margin-top: 12px;
}

.form-help a {
    color: #b3b3b3;
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.sign-up-info {
    margin-top: 50px;
}

.sign-up-info p {
    color: #b3b3b3;
}

.sign-up-info a {
    color: white;
    text-decoration: none;
}

.sign-up-info a:hover {
    text-decoration: underline;
}

.recaptcha-text {
    font-size: 13px;
    margin-top: 12px;
}

/* Media query for smaller screens */
@media screen and (max-width: 600px) {
    .box1 {
        background: black; /* Use a solid background on mobile */
        padding: 10px;
        justify-content: flex-start;
    }
    
    .box2 {
        padding: 20px; /* Reduce padding on smaller screens */
        max-width: 100%;
    }
}
